<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>视频日记</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<script type="text/javascript" src="../js/customize.js"></script>
        <link rel="stylesheet" type="text/css" href="../css/customize.css">
        <script type="text/javascript" src="<%=basePath%>jquery-easyui-1.3.5/jquery.min.js"></script>
<%--         <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script> --%>
		<script type="text/javascript" src="<%=basePath%>js/jwplayer.js"></script>
		<%-- <script type="text/javascript" src="<%=basePath%>js/jwplayer.html5.js"></script> --%>
		<%-- <script type="text/javascript" src="<%=basePath%>js/zi953rsOEeOsgCIACrqE1A.js"></script> --%>
		
<style type="text/css">
<!--

.middlecase{
	width:70%;
	min-height:1000px;
	padding:1%;
	background-color:#ffffff;
	margin:5% auto;
	border:1px solid #d9d9d9;
	box-shadow:0 1px 0,0 5px 5px rgba(0,0,0,0.7);
	border-radius:6px 6px 6px 6px;
}
.title{
	height:5%;
	padding-top:2%;
	text-align:center;
	font-size:16pt;
	font-family:微软雅黑;
	color:#000000;
	font-weight:normal;
}

.rightbar{
	margin:10px;
	float:left;
}

.myVideo{
	padding:10px;
	
}

}

.videorow{
	width:200px;
	height:200px;
	margin:0 auto;
	background-color:#f5f5f5;
	
	
}

.videoPic{
	width:146px;
	height:81px;
	cursor:pointer;
}

.comment{
	width:100%;
	height:230px;
	background-color:#FAFAFA;
}

.commentCase{
	width:100%;
	float:left;
}

.tb_hr{ 
	width:100%;
	height:1px;
	background-color:#c8c7cc;
	border:none;
	
	}
	
.commentContent{
	margin-top:10px;
	margin-left:20px;
	color:#555555;
	font-size:10pt;
}

 div.commentContent a:link {color:#06a7e1;text-decoration:none;font-size:10pt;} /* 未访问的链接 */
 div.commentContent a:visited {color:#06a7e1;text-decoration:none;font-size:10pt;} /* 已访问的链接 */
 div.commentContent a:hover {color:#cc3311;font-size:10pt;} /* 鼠标移动到链接上 */
 div.commentContent a:active {color: #cc3311;font-size:10pt;} /* 选定的链接 */

 div.videorow a:link {color:#575757;text-decoration:none;font-size:11pt;} /* 未访问的链接 */
 div.videorow a:visited {color:#575757;text-decoration:none;font-size:11pt;} /* 已访问的链接 */
 div.videorow a:hover {color:#cc3311;font-size:11pt;} /* 鼠标移动到链接上 */
 div.videorow a:active {color: #575757;font-size:11pt;} /* 选定的链接 */


body{
	background-image:url('<%=basePath%>images/background4.jpg');
	background-repeat:no-repeat;
}
-->
</style>
<script type="text/javascript">
  	function CkeckCommentForm(){
  		var oEditor = CKEDITOR.instances.editcomment;
  		
  		if(oEditor.getData()==""){
  			document.getElementById("erromsg").innerHTML="至少写点什么吧！";
  			document.getElementById("erromsg").style.color="red";
  			return false;
  		}
  		else{
  			return true;
  		}
  	}
</script>


</head>
<body>
      <jsp:include page="../head.jsp"></jsp:include>
      
    <div class="middlecase">
		
		<!-- 评论 -->
		<div  id="reply_comment" class="comment">
			<form action="Media_replyMediaCommentAction?authorName=${temploginbean.userName}" method="post">
				 <!-- 隐藏回复跟帖的信息 -->
				 <input type="hidden" name="mediacomment.videoId" value="${videoId}">
				 <input type="hidden" name="mediacomment.authorId" value="${temploginbean.userId}">
				 <input type="hidden" name="mediacomment.authorName" value="${temploginbean.userName}">
				 <input type="hidden" name="mediacomment.originalCommentId" value="<s:property value='mediacomment.originalCommentId'/>"/>
				 <input type="hidden" name="mediacomment.originalCommentorName" value="<s:property value='mediacomment.originalCommentorName'/>"/>
				 <input type="hidden" name="mediacomment.originalCommentText" value="<s:property value='mediacomment.originalCommentText'/>"/>
				<div style="width:10%;height:200px;background-color:#ffffff;">
				<div>评论</div>
					<div style="width:50px;height:50px;margin:5px auto;border:1px solid green;text-align:center;line-height:100px;">
						<img alt="头像" width="50px" height="50px" src="<%=basePath%>images/user_img.png">
					</div>
				</div>
				<div style="width:80%;height:auto;margin-top:25px;margin-left:100px;float:left;">
					<textarea name="mediacomment.commentText" style="width:700px;height:100px"></textarea>		 
				 <div style="width:100%;heigh:55px;">
				 	<div style="width:30%;heigh:100%;float:left;">
			 			<input type="submit" value="发表评论" onclick="return CkeckCommentForm();" style="cursor: pointer;width:100px;height:35px;"/>
			 		</div>
			 		<div style="width:68%;height:55px;float:right;text-align:left;line-height:45px">
						<span id="erromsg"></span>
					</div>
				 </div>
				 
			 </div>
			 </form>
		</div>
				
				
	</div>
	<!---->
  </div>  
    <%@ include file="../foot.jsp"%>
  </div>

</body>
</html>